package com.ruoyi.bus.service.impl;

import com.ruoyi.bus.mapper.NoMapper;
import com.ruoyi.bus.service.NoGenerateServlce;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class NoGenerateServlceImpl implements NoGenerateServlce {
    @Resource
    private NoMapper noMapper;



    @Override
    public String getNo(String seqTypeId, String str1, String str2, String date) {
        return noMapper.getNo(seqTypeId,str1,str2,date);
    }

    /**
     * 生成序号
     *
     * @param seqTypeId
     * @param len
     * @return seqTypeId + len长度的序号,不足补零
     */
    @Override
    public String getSeqNo(String seqTypeId, int len) {
        return noMapper.getSeqNo(seqTypeId,len);
    }

    @Override
    public String getPinyinCode(String str) {
        return noMapper.getPinyinCode(str);
    }
}
